﻿@model ViewModels.Components.NavigatorModel

@if (Model != null)
{
	@*<li class="nav-item">
		<a class="nav-link hover-hand">
			<i class="fa-solid fa-piggy-bank text-warning"></i> 20
		</a>
	</li>*@
	<li class="nav-item">
		<a class="nav-link hover-hand" onclick="showInviteCode()">邀请码</a>
	</li>
	<li class="nav-item dropdown">
		<a class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-expanded="false">
			<i class="fa fa-user"></i> <span zyf-current-username> @Model.NickName</span>
		</a>
		<div class="dropdown-menu">
			

			<a class="dropdown-item"><span class="icon iconfont icon-beans"></span> 帮帮豆 5 枚</a>
			<a class="dropdown-item" href="/User/HomePage/@Model.UserId">个人主页</a>
			<a class="dropdown-item" href="/LogOn/Off">退出登录</a>
		</div>
	</li>
}
else
{
	<li class="nav-item">
		<a class="nav-link text-dark hover-hand" 
		href="/User/Register?@ViewContext.HttpContext.Request.GetPrepage()">注册</a>
	</li>
	<li class="nav-item">
		<a class="nav-link text-dark hover-hand" onclick="showLogonModal()">登录</a>
	</li>
}